package com.googlecode.cswish.model;

import com.googlecode.cswish.security.auth.UserInfo;

public class User implements UserInfo {
	
	private Integer id;

	private String name;
	
	private Integer age;
	
	private Person[] persons;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	@Override
	public String getLoginId() {
		return id.toString();
	}

	public Person[] getPersons() {
		return persons;
	}

	public void setPersons(Person[] persons) {
		this.persons = persons;
	}
}
